﻿import request from '/@/utils/request';
enum Api {
  AddBusCategory = '/api/busCategory/add',
  DeleteBusCategory = '/api/busCategory/delete',
  UpdateBusCategory = '/api/busCategory/update',
  PageBusCategory = '/api/busCategory/page',
  GetSysUserDropdown = '/api/busCategory/SysUserDropdown',
}

// 增加品类管理
export const addBusCategory = (params?: any) =>
	request({
		url: Api.AddBusCategory,
		method: 'post',
		data: params,
	});

// 删除品类管理
export const deleteBusCategory = (params?: any) => 
	request({
			url: Api.DeleteBusCategory,
			method: 'post',
			data: params,
		});

// 编辑品类管理
export const updateBusCategory = (params?: any) => 
	request({
			url: Api.UpdateBusCategory,
			method: 'post',
			data: params,
		});

// 分页查询品类管理
export const pageBusCategory = (params?: any) => 
	request({
			url: Api.PageBusCategory,
			method: 'post',
			data: params,
		});

export const getSysUserDropdown = () =>
		request({
		url: Api.GetSysUserDropdown,
		method: 'get'
		});

